<table width="555">
  <tr>
    <th height="116" colspan="2" scope="col"><div align="center">
      <h1>Login OTS</h1>
    </div></th>
  </tr>
  <tr>
    <td width="203" height="62"><div align="right">Username</div></td>
    <td width="340"><form id="form1" name="form1" method="post" action="">
      <label for="username"></label>
      <div align="right">
        <input name="username" type="text" id="username" value="" />
      </div>
    </form></td>
  </tr>
  <tr>
    <td height="76"><div align="right">Password</div></td>
    <td><form id="form2" name="form2" method="post" action="">
      <label for="password"></label>
      <div align="right">
        <input type="password" name="password" id="password" />
      </div>
    </form></td>
  </tr>
  <tr>
    <td height="71"><form action="" method="get" name="form3" id="form3">
      <div align="right">
        <input type="submit" name="Submit" id="Submit" value="Submit" />
      </div>
    </form></td>
    <td height="71"><form id="form4" name="form4" method="get" action="">
      <div align="center">
        <input type="reset" name="Reset" id="Reset" value="Reset" />
      </div>
    </form></td>
  </tr>
</table>
<?php

//get form data
	$Username = $_GET["username"];
	$Password = $_GET["Password"];
include 'dbcon.php';
$sql="SELECT * from admin(Username,Password) VALUES('$Username','$Password')";

	if (mysql_query($sql,$con))
  	{
  		echo "Record of Admin ".$Username." added successfully.";
  	}
	else{
		echo "Sorry! Try again...";
	}
	mysql_close($con)			
	?>



